<?php
namespace App\Contant;


class WxMessageType{
    const COMMENT = 'COMMENT';//评论
    const ADD	  = 'ADD'; //购买
    const FOLLOW  = 'FOLLOW';//关注
    const ENROLL  = 'ENROLL';//报名
    const CREATE = 'CREATE';//发布课程
    const IMAGE   = 'IMAGE';//图文类型
    const COLLECT = 'COLLECT';//收藏
    const UPDATE  = 'UPDATE';//课程更新
    const RECOMMEND  = 'RECOMMEND';//好课推荐
    const WEIXINNOTICE = 'WEIXINNOTICE';//入群通知
    const COURSEBUY = 'COURSEBUY';//入群通知
    const DEFINE   = 'DEFINE';//自定义
    const TEACHER   = 'TEACHER';//招生老师
    const RESULT    = 'RESULT';//审核结果通知
    public static function trans($type){
        switch ($type) {
            case self::COMMENT:
                return '评论';
            case self::ADD:
                return '购买';
            case self::FOLLOW:
                return '关注';
            case self::ENROLL:
                return '课程报名';
            case self::CREATE:
                return '新课上线';
            case self::COLLECT:
                return '课程收藏';
            case self::UPDATE:
                return '课程更新';
            case self::RECOMMEND:
                return '好课推荐';
            case self::WEIXINNOTICE:
                return '入群通知';
            case self::DEFINE:
                return '自定义';
            case self::IMAGE:
                return '关注';
            case self::COURSEBUY:
                return '购买课程';
            case self::TEACHER:
                return '招生老师';
            case self::RESULT:
                return '审核结果通知';    
        }
    }
}